package com.wdd.owntool.di

import com.wdd.libbase.di.annotation.ActivityScoped
import com.wdd.owntool.ui.mvp.MvpActivity
import com.wdd.owntool.ui.mvp.MvpFragment
import dagger.Module
import dagger.android.ContributesAndroidInjector


/**
 * @ProjectName: Tools
 * @Package: com.wdd.tools.di
 * @ClassName: AppBindingModule
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2019/6/27 10:10
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/6/27 10:10
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Module
abstract class AppBindingModule {
    @ActivityScoped
    @ContributesAndroidInjector(modules = [MvpDaggerModule::class])
    abstract fun mvpActivity(): MvpActivity


    @ActivityScoped
    @ContributesAndroidInjector(modules = [MvpFragmentModule::class])
    abstract fun mvpFragmemnt(): MvpFragment
}